package org.jeecg.modules.yw.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jeecg.common.aspect.annotation.Dict;

import java.math.BigDecimal;
import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("material_info")
public class MaterialInfo {
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id; // 主键id

    @ApiModelProperty(value = "品类")
    private String category; // 品类

    @ApiModelProperty(value = "材料状态")
    private String status; // 材料状态

    @ApiModelProperty(value = "项目")
    private String project; // 项目

    @ApiModelProperty(value = "面积")
    private String area; // 面积

    @ApiModelProperty(value = "价格（元）")
    private BigDecimal price; // 价格（元）

    @ApiModelProperty(value = "单位")
    @Dict(dicCode = "priceunit")
    private String unit; // 单位

    @ApiModelProperty(value = "备注")
    private String remark; // 备注
    private Integer morder;

    @ApiModelProperty(value = "创建人")
    @Dict(dictTable = "sys_user", dicCode = "id", dicText = "realname")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    private Date createtime;
}
